package templateExecel2.extract;

import java.util.Map;

//空白的提取单元格
public class NullExtractCell extends ExtractCell {


    @Override
    Map<String, ValueHolder> extract(Object obj, Merge merge) {

        //如果是空白
        if (obj == null) {

            if (merge == this.merge) {
                return emptyMap;

            } else {

                if (this.merge.getCol() != merge.getCol()) {
                    return null;
                }

                if (this.merge.getRow() == 1) {
                    this.blankToken = merge.getRow() - 1;
                    return emptyMap;
                }
            }

        }

        return null;
    }

}
